NAME		= test
SRCS		= main.cpp	\
		my_showmem.cpp	\
		Element.cpp	\

OBJS		= $(SRCS:.cpp=.o)

CXX		= g++
CXXFLAGS	= -Wall -I. -ggdb -g3 $(shell pkg-config --cflags OGRE OIS CEGUI) -O2
# -DOGRE_GUI_GLX
# -DOGRE_CONFIG_LITTLE_ENDIAN -I/usr/include/OGRE
# -I../ogre_src_v1-7-2/OgreMain/include/ -I../ogre_src_v1-7-2/CMake/Templates/ -I/usr/include/OIS
LDFLAGS		= $(shell pkg-config --libs OGRE OIS CEGUI) -L.
# -lOgreMain -lOIS

all: $(NAME)

$(NAME): $(OBJS)
		$(CXX) -o $(NAME) $(OBJS) $(LDFLAGS)

clean:
		rm -rf $(OBJS)

fclean: clean
		rm -rf $(NAME)

re: fclean all
